package mid;

public class a739_每日温度 {
    public int[] dailyTemperatures(int[] temperatures) {
        int ans[]=new int[temperatures.length];
        for (int i = 0; i < temperatures.length-1; i++) {
            for (int j = i+1; j < temperatures.length; j++) {
                if (temperatures[j]-temperatures[i]>0){
                    ans[i]=j-i;
                    break;
                }
            }
        }
        return ans;
    }
}
